FROM ubuntu:latest
LABEL authors="ZLY" email="3065400350@qq.com"
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
RUN  apt update -y &&  \
     apt cluster wget -y && \
     wget https://repo.huaweicloud.com/openjdk/17/openjdk-17_linux-x64_bin.tar.gz && \
     tar -zxvf openjdk-17_linux-x64_bin.tar.gz  -C /opt && \
     rm -rf openjdk-17_linux-x64_bin.tar.gz
ENV JAVA_HOME /opt/jdk-17
ENV PATH $PATH:$JAVA_HOME/bin
ENTRYPOINT ["/bin/bash"]
